package com.grass.cropTradingCenter.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 
 * @TableName user_commit
 */
@TableName(value ="user_commit")
@Data
public class UserCommit implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "user_id")
    private Integer userId;

    /**
     * 
     */
    @TableField(value = "shop_id")
    private Integer shopId;

    /**
     * 
     */
    @TableField(value = "goods_id")
    private Integer goodsId;

    /**
     * 评论内容
     */
    @TableField(value = "commit_text")
    private String commitText;

    /**
     * 评分 1--差评 2--中评 3--好评
     */
    @TableField(value = "commit_rate")
    private Integer commitRate;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    private Integer commitType;

    /**
     *
     */
    @TableField(value = "order_id")
    private Integer orderId;

    @TableField(exist = false)
    private List<String> imageList;

    @TableField(exist = false)
    private UserOrder order;

    @TableField(exist = false)
    private MiniUser user;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}